//
//  UIView+Create.m
//  YiShou
//
//  Created by Kerry on 16/3/5.
//  Copyright © 2016年 FuMi. All rights reserved.
//

#import "UIView+Create.h"

@implementation UIView (Create)

+ (id)loadFromNib
{
    NSString *xibName = NSStringFromClass([self class]);
    return [[[NSBundle mainBundle] loadNibNamed:xibName owner:nil options:nil] firstObject];
}

+ (UINib *)registerNib
{
    NSString *xibName = NSStringFromClass([self class]);
    return [UINib nibWithNibName:xibName bundle:nil];
}


+ (NSString *)cellIdentifier
{
    return NSStringFromClass([self class]);
}
@end
